package com.amtf.datafile2.core.std;

import com.amtf.datafile2.DataFieldDefinition;
import com.amtf.datafile2.DataTable;
import com.amtf.datafile2.DataTableDefinition;

public abstract class StdDataTable<DTD extends DataTableDefinition<DFD>, DFD extends DataFieldDefinition> implements DataTable<DTD, DFD> {

	protected String name = "";
	protected int currentReadingLine = 0;
	protected int currentWritenLine = 0;
	protected DTD definition = null;

	public StdDataTable(String name, DTD definition) {
		this.name = name;
		this.definition = definition;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public DTD getDefinition() {
		return definition;
	}

	public void setDefinition(DTD definition) {
		this.definition = definition;
	}

	public int currentReadingLine() {
		return currentReadingLine;
	}

	public int currentWritenLine() {
		return currentWritenLine;
	}
}
